#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class TrainProjectItem : Business.BusinessBase<TrainProjectItem, Decimal>
	{
		#region Fields and Properties

		private String des = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Des
		{
			get { return des; }
			set
			{
				if (value != des)
				{
					MarkChanged("Des");
					des = value;
				}
			}
		}

		private String position = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Position
		{
			get { return position; }
			set
			{
				if (value != position)
				{
					MarkChanged("Position");
					position = value;
				}
			}
		}

		private String consistTime = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ConsistTime
		{
			get { return consistTime; }
			set
			{
				if (value != consistTime)
				{
					MarkChanged("ConsistTime");
					consistTime = value;
				}
			}
		}

		private String startTime = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StartTime
		{
			get { return startTime; }
			set
			{
				if (value != startTime)
				{
					MarkChanged("StartTime");
					startTime = value;
				}
			}
		}

		private String content = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Content
		{
			get { return content; }
			set
			{
				if (value != content)
				{
					MarkChanged("Content");
					content = value;
				}
			}
		}

		private DateTime itemEndDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime ItemEndDate
		{
			get { return itemEndDate; }
			set
			{
				if (value != itemEndDate)
				{
					MarkChanged("ItemEndDate");
					itemEndDate = value;
				}
			}
		}

		private int itemConsistDate = 0;
		/// <summary>
		/// 
		/// </summary>
		public int ItemConsistDate
		{
			get { return itemConsistDate; }
			set
			{
				if (value != itemConsistDate)
				{
					MarkChanged("ItemConsistDate");
					itemConsistDate = value;
				}
			}
		}

		private DateTime itemStartDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime ItemStartDate
		{
			get { return itemStartDate; }
			set
			{
				if (value != itemStartDate)
				{
					MarkChanged("ItemStartDate");
					itemStartDate = value;
				}
			}
		}

		private String projectCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProjectCode
		{
			get { return projectCode; }
			set
			{
				if (value != projectCode)
				{
					MarkChanged("ProjectCode");
					projectCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public TrainProjectItem()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override TrainProjectItem DataSelect(Decimal id)
		{
			return Services.DALService.TrainProjectItemService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.TrainProjectItemService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.TrainProjectItemService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.TrainProjectItemService.Delete(this);
		}

		#endregion Base overrides
	}
}
